package cn.yedong.product.mapper;

import cn.yedong.product.domain.Product;
import cn.yedong.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yedong
 * @since 2023-02-22
 */
public interface ProductMapper extends BaseMapper<Product> {
    //修改单个服务上架状态
    void updateOnSaleState(@Param("id") Long id,@Param("date") Date date);
    //服务批量下架
    void offSale(@Param("ids")List<Long> ids,@Param("date") Date date);
}
